package com.ruoyi.yf.test.spider;

/**
 * 文章页内容
 */
public class Passage {
    //    章节排序
    private int index;
    //    章节名称
    private String title;
    //    章节链接
    private String url;
    //    字数
    private int size;
    //    卷章
    private String volume;
    //    章节时间
    private String date;
    //    章节作者
    private String author;
    //    章节内容
    private String content;

    public Passage(int index, String title, String url) {
        this.index = index;
        this.title = title;
        this.url = url;
    }

    public Passage(int index, String volume, String title, String url) {
        this.index = index;
        this.title = title;
        this.volume = volume;
        this.url = url;
    }

    public Passage(String title, String url) {
        this.title = title;
        this.url = url;
    }


    public Passage(String title, String url, String content) {
        this.title = title;
        this.url = url;
        this.content = content;
    }

    public Passage() {
        super();
    }

    public Passage(int index, String title, String url, int size, String volume, String date, String author, String content) {
        this.index = index;
        this.title = title;
        this.url = url;
        this.size = size;
        this.volume = volume;
        this.date = date;
        this.author = author;
        this.content = content;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Passage{" +
                "index=" + index +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", size=" + size +
                ", volume='" + volume + '\'' +
                ", date='" + date + '\'' +
                ", author='" + author + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
